<#import "../macro/components.ftl" as components/>
<#include "../macro/layout_default.ftl"/>

<@head>
<link rel="stylesheet" href="/misc/app/css/product_list.css"/>
<link rel="stylesheet" href="/misc/adminlte-2.3.7/plugins/daterangepicker/daterangepicker.css"/>
</@head>

<@body>
<script src="/misc/adminlte-2.3.7/plugins/daterangepicker/moment.min.js"></script>
<script src="/misc/adminlte-2.3.7/plugins/daterangepicker/daterangepicker.js"></script>
<script src="/misc/app/js/winning_list.js"></script>
</@body>

<@layout_default>


<!--===========点击列表中“详情”按钮，显示兑奖详情页面  start================--->
<div class="box" name="md_edit_activity">
  <div class="box-header with-border">
    <h4 class="box-title"><i class="fa fa-plus"></i> 兑奖详情</h4>
  </div>
  <div class="box-body">
    <form class="form-horizontal" name="form_detail_winning">
      <input type="hidden" name="id" id="winningId" value="${winning.id}"/>
      <div class="form-group">
        <label style="text-align:left;" class="col-sm-2 control-label" name="namelabel">兑奖信息</label>
      </div>
      <div class="form-group">
        <div class="col-sm-10">
          <table>
            <tr>
              <td style="width:100px;">扫码时间：</td>
              <td style="padding-right:10px;width:200px;">
                <#if winning.scanTime?exists>${winning.scanTime?number_to_datetime}</#if>
              </td>
              <td style="width:100px;">扫码手机号：</td>
              <td style="margin-left:10px;width:200px;">
                <#if winning.csshMobile?exists>${winning.csshMobile?c}</#if>
              </td>
              <td style="width:100px;"></td>
              <td style="width:200px;">


              </td>
            </tr>
          </table>
        </div>
      </div>
      <div class="form-group">
        <div class="col-sm-10">
          <table>
            <tr>
              <td style="width:100px;">奖品等级：</td>
              <td style="padding-right:10px;width:200px;">
                <#if ap.gradeName?exists>${ap.gradeName}</#if>
              </td>
              <td style="width:100px;">奖品类型：</td>
              <td style="margin-left:10px;width:200px;">
                <#if winning.prizeType?exists><#if winning.prizeType=='1'>红包<#elseif winning.prizeType=='2'>实物<#else>
                  优惠券</#if></#if>
              </td>
            </tr>
          </table>
        </div>
      </div>
      <div class="form-group">
        <div class="col-sm-10">
          <table>
            <tr>
              <td style="width:100px;">奖品名称：</td>
              <td style="padding-right:10px;width:200px;">
                <#if winning.prizeName?exists>${winning.prizeName}</#if>
              </td>
              <td style="width:100px;">奖品价格：</td>
              <td style="margin-left:10px;width:200px;">
                <#if winning.prizePrice?exists>${winning.prizePrice?string('0.00')}</#if>
              </td>
            </tr>
          </table>
        </div>
      </div>
      <div class="form-group">
        <div class="col-sm-10">
          <table>
            <tr>
              <td style="width:100px;">配送方式：</td>
              <td style="padding-right:10px;width:200px;">
                <#if winning.shipMethod?exists>
                  <#if winning.shipMethod=='1'><span class="text-green">自动发送</span>
                  <#elseif winning.shipMethod=='2'><span class="text-yellow">上门自提</span>
                  <#else><span class="text-danger">物流配送</span></#if></#if>
              </td>
              <#if winning.shipMethod?exists>
                <#if winning.shipMethod =='1'>
                  <td style="width:100px;">发送时间：</td>
                  <td style="width:200px;">
                    <#if winning.cashTime?exists>${winning.cashTime?number_to_datetime}</#if>
                  </td>
                </#if>
              </#if>
              <#if winning.shipMethod?exists>
                <#if winning.shipMethod=='2'>
                  <td style="width:100px;">兑奖网点：</td>
                  <td style="margin-left:10px;width:200px;">
                    <#if branch.name?exists>${branch.name}</#if>

                  </td>
                  <td style="width:100px;">兑奖时间：</td>
                  <td style="width:200px;">

                  </td>
                </#if>
              </#if>
              <#if winning.shipMethod?exists>
                <#if winning.shipMethod=='3'>
                  <td style="width:100px;">承运方：</td>
                  <td style="margin-left:10px;width:200px;">
                  ${info.logisticsName!}
                  </td>
                  <td style="width:100px;">官网：</td>
                  <td style="width:200px;">
                  ${info.logisticsWebsite!}
                  </td>
                </#if>
              </#if>
            </tr>
          </table>
        </div>
      </div>
      <#if winning.shipMethod?exists>
        <#if winning.shipMethod=='3'>
          <div class="form-group">
            <div class="col-sm-10">
              <table>
                <tr>
                  <td style="width:100px;">运单号：</td>
                  <td style="padding-right:10px;width:200px;">
                  ${info.waybillNumber!}
                  </td>
                  <td style="width:100px;">配送时间：</td>
                  <td style="margin-left:10px;width:200px;">
                    <#if info.deliveryTime?exists>${info.deliveryTime?number_to_datetime}</#if>
                  </td>
                  <td style="width:100px;">收件人：</td>
                  <td style="margin-left:10px;width:200px;">
                  ${winning.consignee!}
                  </td>
                </tr>
              </table>
            </div>
          </div>
        </#if>
      </#if>
      <#if winning.shipMethod?exists>
        <#if winning.shipMethod=='3'>
          <div class="form-group">
            <div class="col-sm-10">
              <table>
                <tr>
                  <td style="width:100px;">联系电话：</td>
                  <td style="padding-right:10px;width:200px;">
                    <#if winning.mobile?exists>${winning.mobile?c}</#if>
                  </td>
                  <td style="width:100px;">配送地址：</td>
                  <td style="margin-left:10px;width:600px;">
                  ${winning.adress!}
                  </td>

                </tr>
              </table>
            </div>
          </div>
        </#if>
      </#if>
      <hr/>
      <div class="form-group">
        <label style="text-align:left;" class="col-sm-2 control-label" name="namelabel">活动信息</label>
      </div>
      <div class="form-group">
        <div class="col-sm-10">
          <table>
            <tr>
              <td style="width:100px;">活动名称：</td>
              <td style="padding-right:10px;width:200px;">
                <#if activity.name?exists>${activity.name}</#if>
              </td>
              <td style="width:100px;">活动区域：</td>
              <td style="margin-left:10px;width:200px;">
                <#if activity.areaName?exists>${activity.areaName}</#if>
              </td>
              <td style="width:100px;">渠道：</td>
              <td style="width:200px;">
                <#if activity.channel?exists>${activity.channel}</#if>
              </td>
            </tr>
          </table>
        </div>
      </div>
      <div class="form-group">
        <div class="col-sm-10">
          <table>
            <tr>
              <td style="width:100px;">活动时间：</td>
              <td style="padding-right:10px;width:200px;">
                <#if activity.actTimeStart?exists>${activity.actTimeStart?number_to_date}
                  至${activity.actTimeEnd?number_to_date}</#if>
              </td>
              <td style="width:100px;">活动商品：</td>
              <td style="margin-left:10px;width:200px;">
                <#if winning.productName?exists>${winning.productName}</#if>
              </td>
              <td style="width:100px;">产品编码：</td>
              <td style="width:200px;">
                <#if winning.productNumber?exists>${winning.productNumber}</#if>
              </td>
            </tr>
          </table>
        </div>
      </div>
      <hr/>
      <div class="form-group">
        <label style="text-align:left;" class="col-sm-2 control-label" name="namelabel">二维码信息</label>
      </div>
      <div class="form-group">
        <div class="col-sm-10">
          <table>
            <tr>
              <td style="width:100px;">二维码编号：</td>
              <td style="padding-right:10px;width:200px;">
                <#if winning.qrcodeId?exists>${winning.qrcodeId}</#if>
              </td>
              <td style="width:100px;">二维码明码：</td>
              <td style="margin-left:10px;width:200px;">
                <#if winning.showCode?exists>${winning.showCode}</#if>
              </td>
            </tr>
          </table>
        </div>
      </div>
      <div class="form-group">
        <div class="col-sm-10">
          <table>
            <tr>
              <td style="width:100px;">二维码批次：</td>
              <td style="padding-right:10px;width:200px;">
                <#if winning.qrcodeName?exists>${winning.qrcodeName}</#if>

              </td>
              <td style="width:100px;">二维码类型：</td>
              <td style="margin-left:10px;width:200px;">
                <#if winning.qrcodeType?exists><#if winning.qrcodeType==0><span class="">组合码瓶码</span>
                <#elseif winning.qrcodeType==1><span class="">组合码箱码</span><#elseif winning.qrcodeType==2>
                  <span class="">普通码瓶码</span><#elseif winning.qrcodeType==3><span class="">普通码箱码</span></#if></#if>
              </td>
              <td style="width:100px;"></td>
              <td style="width:200px;">

              </td>
            </tr>
          </table>
        </div>
      </div>

    </form>
  </div>
  <div class="box-footer text-right">
    <button type="button" class="btn btn-default" name="btn_cancel_detail_winning">返回</button>

  </div>
</div>
<!--===========点击列表中“详情”按钮，显示兑奖详情页面  start================--->



</@layout_default>